Leadtools.Dicom.Common Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Set(DicomDataSet,BeforeAddTagDelegate,Object[]) Method
See Also 
Leadtools.Dicom.Common.Extensions Namespace > DicomExtensions Class > Set Method : Set(DicomDataSet,BeforeAddTagDelegate,Object[]) Method



ds
The dataset to set information into.
OnBeforeAdd
The delegate to call before adding the element to the dataset.
instances
The instances that have the correct attributes.
ds
The dataset to set information into.
OnBeforeAdd
The delegate to call before adding the element to the dataset.
instances
The instances that have the correct attributes.
Sets the information in the dataset from the specified class instances.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Overloads Public Shared Sub Set( _
   ByVal ds As DicomDataSet, _
   ByVal OnBeforeAdd As BeforeAddTagDelegate, _
   ByVal ParamArray instances() As Object _
) 
Visual Basic (Usage)Copy Code
Dim ds As DicomDataSet
Dim OnBeforeAdd As BeforeAddTagDelegate
Dim instances() As Object
 
DicomExtensions.Set(ds, OnBeforeAdd, instances)
C# 
[ExtensionAttribute()]
public static void Set( 
   DicomDataSet ds,
   BeforeAddTagDelegate OnBeforeAdd,
   params object[] instances
)
C++/CLI 
[ExtensionAttribute()]
public:
static void Set( 
   DicomDataSet^ ds,
   BeforeAddTagDelegate^ OnBeforeAdd,
   ... array<Object^>^ instances
) 

Parameters

ds
The dataset to set information into.
OnBeforeAdd
The delegate to call before adding the element to the dataset.
instances
The instances that have the correct attributes.

Remarks

The delegate can return false to disable adding the element to the dataset.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.Common requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features